param(
    [Parameter()]
    [String]$state="L"
)
Get-Date >> log.txt|  Out-Null
if($state -eq "L"){
	7z a -t7z prj.7z project1113 -x!project1113\bin README.md autoUpdate.ps1 project1113.sln >> log.txt |  Out-Null
}else{
	7z a -t7z prj.7z project1113 README.md autoUpdate.ps1 project1113.sln >> log.txt |  Out-Null
}
Write-Host "File compression in progress, please wait...... --zyx"
git add . >> log.txt | Out-Null
git commit -m"auto updata" >> log.txt | Out-Null
git push origin master >> log.txt| Out-Null